import java.io.File

fun main() {
    val result = File("E://i have a dream.txt")
        .takeIf { it.exists() && it.canRead() }
        ?.readText();

    println(result)


    val result02 = File("E://i have a dream.txt")
        .takeUnless { it.isHidden }
        ?.readText();

    println(result02)
}